{% extends "card/card-base.jinja" %}

{% block title %}{{card_data.title}}_婚礼时光电子婚礼请柬在线制作平台{% endblock %}
{% block keywords %}{{card_data.title}},婚礼请柬,电子请柬,电子请帖,结婚请柬,结婚请帖,电子请柬制作{% endblock %}
{% block description %}{{card_data.title}}{% endblock %}

{% block css %},card.css{% endblock %}
{% block pagetype %}card-home{% endblock %}

{% block main %}
<div class="ch-logo"><a class="cui" href="{{domain}}" target="_blank">婚礼时光</a></div>
<div class="layout ch-main">
    <ul class="ch-post" id="ch-post">
    	<li class="ch-movie"></li>
        {% if has_permission %}
        	{% for p in card_post %}
        	    <li class="cui-a cui-b cbox">
            		<div class="cui-a cui-b cbox-bd">
            			{% if p.media %}
                            <img class="chpi-m-loading" src="http://s.lovewith.me/static/images/blank.gif" data-src="{{p.media}}">
                            <h3>{{p.title}}</h3>
                        {% else %}
                            <h2>{{p.title}}</h2>
                            <div class="chp-content">
                            	{% autoescape off %}{{p.content}}{% endautoescape %}
                           	</div>
                        {% endif %}
            		</div>
        	    </li>
            {% endfor %}
            <li class="cui-a cui-b cbox">
            	<div class="cui-a cui-b cbox-bd">
            		<h2>我们的位置</h2>
        			<div class="chp-content chp-mapwarp">
        				<div class="chp-map" id="map"></div>
        			</div>
        		</div>
            </li>
        {% endif %}
    </ul>
    <div class="switch-page" id="switch-page">
        <a id="switch-page-prev" class="ui-a switch-page-prev" href="javascript:;"></a>
        <a id="switch-page-next" class="ui-a switch-page-next" href="javascript:;"></a>
    </div>
</div>
{% endblock %}

{% block script -%}
<script>seajs.use('page/card/card', function(p){p.render({hasPermission:{%if has_permission%}1{%else%}-1{%endif%},inviter:'{{invited_name}}',receiverText:'{{invite_text}}',openText:'{{open_txt}}',point:'{{card_data.map_point}}',bride:'{{wedding_data.bride}}',bridegroom:'{{wedding_data.bridegroom}}',address:'{{wedding_data.address}}',date:'{{wedding_data.wedding_date}}',time:'{{wedding_data.wedding_time}}',content:'{{card_data.content|replace('\n', '')}}',config:'{% autoescape off %}{{card_data.card_config|replace('\\"', '\\\\"')|replace('\'', '\\\\"')|replace('card.etosun.com', 'img.lovewith.me/upload')}}{%endautoescape%}'})});</script>
{% endblock -%}